Skip to content

Commit 29fa921

Browse files
committed
MB-32147: Add extra checks for last_modified existence
The test currently fails with last_modified not being a string, but we have no clue if: a) It was present in the JSON at all b) what the type was Change-Id: I88a205dcc12d58a54fa8886fea23b2fb0af34d6d Reviewed-on: http://review.couchbase.org/103578 Reviewed-by: Dave Rigby <[email protected]> Tested-by: Trond Norbye <[email protected]>
1 parent 787071e commit 29fa921

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testapp/testapp_xattr.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,8 @@ TEST_P(XattrTest, MB_23882_VirtualXattrs) {
873873
EXPECT_TRUE(json["flags"].is_number());
874874

875875
if (mcd_env->getTestBucket().supportsLastModifiedVattr()) {
876-
EXPECT_TRUE(json["last_modified"].is_string());
876+
EXPECT_NE(json.end(), json.find("last_modified"));
877+
EXPECT_STREQ("string", json["last_modified"].type_name());
877878
}
878879

879880
// Verify exptime is showing as 0 (document has no expiry)

0 commit comments

Comments
 (0)