1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-19 04:02:27 +08:00

Update promise_test.go

单测失败修复
This commit is contained in:
lee
2023-11-18 14:22:22 +08:00
committed by GitHub
parent 731be48b30
commit 7d78d67488

View File

@@ -16,7 +16,7 @@ func TestResolve(t *testing.T) {
p := Resolve("abc")
assert.Equal("abc", p.result)
assert.Equal(false, p.pending)
assert.Equal(false, p.pending.Load())
}
func TestReject(t *testing.T) {
@@ -28,7 +28,7 @@ func TestReject(t *testing.T) {
p := Reject[string](err)
assert.Equal("error", p.err.Error())
assert.Equal(false, p.pending)
assert.Equal(false, p.pending.Load())
}
func TestThen(t *testing.T) {