Skip to content

Commit a79a94a

Browse files
committed
fix hashes_test
1 parent e9be2da commit a79a94a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/storage/tests/hashes_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ TEST_F(HashesTest, HIncrbyfloat) {
385385
// operation is performed
386386
s = db.HIncrbyfloat("HINCRBYFLOAT_KEY", "HINCRBYFLOAT_FIELD", "12.3456", &new_value);
387387
ASSERT_TRUE(s.ok());
388-
ASSERT_EQ(new_value, "12.3456");
388+
ASSERT_NEAR(std::stod(new_value.ToString()), 12.3456, 1e-9);
389389
s = db.HGet("HINCRBYFLOAT_KEY", "HINCRBYFLOAT_FIELD", &new_value);
390390
ASSERT_TRUE(s.ok());
391391
//ASSERT_EQ(new_value, "12.3456");

0 commit comments

Comments
 (0)