Skip to content

Commit 55070c7

Browse files
committed
improve memory storage code and performance
1 parent 77b2bdd commit 55070c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/time_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import (
44
"sync/atomic"
55
"testing"
66
"time"
7-
8-
"github.com/stretchr/testify/require"
97
)
108

119
func checkTimeStamp(t testing.TB, expectedCurrent, actualCurrent uint32) {
1210
// test with some buffer in front and back of the expectedCurrent time -> because of the timing on the work machine
13-
require.Equal(t, true, actualCurrent >= expectedCurrent-1 || actualCurrent <= expectedCurrent+1)
11+
AssertEqual(t, true, actualCurrent >= expectedCurrent-1 || actualCurrent <= expectedCurrent+1)
1412
}
1513

1614
func Test_TimeStampUpdater(t *testing.T) {

0 commit comments

Comments
 (0)