Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 644b04a78a752d4c67c90b8b5594a00386dcc79e..798a8e7fe1e15fa61de132398ffc89431d6b45fc 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -543,7 +543,7 @@ UNINITIALIZED_TEST(CustomContextSerialization) { |
" e = function(s) { return eval (s); }" |
"})();" |
"var o = this;" |
- "var r = Math.random() + Math.cos(0);" |
+ "var r = Math.sin(0) + Math.cos(0);" |
"var f = (function(a, b) { return a + b; }).bind(1, 2, 3);" |
"var s = parseInt('12345');"); |
@@ -654,7 +654,7 @@ UNINITIALIZED_DEPENDENT_TEST(CustomContextDeserialization, |
->ToNumber(v8_isolate->GetCurrentContext()) |
.ToLocalChecked() |
->Value(); |
- CHECK(r >= 1 && r <= 2); |
+ CHECK_EQ(1, r); |
int f = CompileRun("f()") |
->ToNumber(v8_isolate->GetCurrentContext()) |
.ToLocalChecked() |