Skip to content

Commit f88a924

Browse files
committed
SERVER-9175 Use ASSERT_OK instead of direct Status comparison
1 parent d1b334e commit f88a924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongo/dbtests/jstests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ namespace JSTests {
12001200
virtual BSONObj bson() const {
12011201
BSONObjBuilder b;
12021202
double d;
1203-
ASSERT(Status::OK() == parseNumberFromString( "0.7", &d ));
1203+
ASSERT_OK(parseNumberFromString( "0.7", &d ));
12041204
b.append( "a", d );
12051205
return b.obj();
12061206
}
@@ -1213,7 +1213,7 @@ namespace JSTests {
12131213
virtual BSONObj bson() const {
12141214
BSONObjBuilder b;
12151215
double d;
1216-
ASSERT(Status::OK() == parseNumberFromString( "-4.4433e-2", &d ));
1216+
ASSERT_OK(parseNumberFromString( "-4.4433e-2", &d ));
12171217
b.append( "a", d );
12181218
return b.obj();
12191219
}

0 commit comments

Comments
 (0)