Skip to content

Commit a2314b6

Browse files
committed
Fix tests
1 parent 7b76edc commit a2314b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/api/iterator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestStoreIteratorHitsLimit(t *testing.T) {
117117

118118
iter, _ = store.Iterator(nil, nil)
119119
_, err = storeIterator(callID, iter, limit)
120-
require.ErrorContains(t, err, "Reached iterator limit (2)")
120+
require.ErrorContains(t, err, "reached iterator limit (2)")
121121

122122
endCall(callID)
123123
}
@@ -294,5 +294,5 @@ func TestQueueIteratorLimit(t *testing.T) {
294294
query = []byte(`{"open_iterators":{"count":35000}}`)
295295
env = MockEnvBin(t)
296296
_, _, err = Query(cache, checksum, env, query, &igasMeter, store, api, &querier, gasLimit, TESTING_PRINT_DEBUG)
297-
require.ErrorContains(t, err, "Reached iterator limit (32768)")
297+
require.ErrorContains(t, err, "reached iterator limit (32768)")
298298
}

internal/api/lib_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func TestInitCacheErrorsForBrokenDir(t *testing.T) {
7777
},
7878
}
7979
_, err := InitCache(config)
80-
require.ErrorContains(t, err, "Could not create base directory")
80+
require.ErrorContains(t, err, "could not create base directory")
8181
}
8282

8383
func TestInitLockingPreventsConcurrentAccess(t *testing.T) {
@@ -103,7 +103,7 @@ func TestInitLockingPreventsConcurrentAccess(t *testing.T) {
103103
},
104104
}
105105
_, err2 := InitCache(config2)
106-
require.ErrorContains(t, err2, "Could not lock exclusive.lock")
106+
require.ErrorContains(t, err2, "could not lock exclusive.lock")
107107

108108
ReleaseCache(cache1)
109109

0 commit comments

Comments
 (0)