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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user