Skip to content

Commit cbf1d2f

Browse files
committed
Assert that failed on-demand import bumps ImportErrorCount stat
1 parent f4b4c94 commit cbf1d2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest/importtest/import_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func TestImportFeedWithRecursiveSyncFunction(t *testing.T) {
9999

100100
// Verify this didn't trigger an on-demand import
101101
assert.Equal(t, int64(0), rt.GetDatabase().DbStats.SharedBucketImportStats.ImportCount.Value())
102+
base.RequireWaitForStat(t, rt.GetDatabase().DbStats.SharedBucketImportStats.ImportErrorCount.Value, 2)
102103
}
103104

104105
// Test import of an SDK delete.

0 commit comments

Comments
 (0)