示例#1
0
func TestThreadSafeAdd(t *testing.T) {
	// Redis Add is not thread safe. If you run this, the test should fail because it never received
	// ErrorFull. It's not thread safe because we don't atomically check the state of the bucket and
	// increment.
	t.Skip()
	flushDb()
	test.ThreadSafeAddTest(getLocalStorage())(t)
}
示例#2
0
func TestThreadSafeAdd(t *testing.T) {
	test.ThreadSafeAddTest(New())(t)
}