Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

test: fix unit test #707

Closed
wants to merge 5 commits into from
Closed

test: fix unit test #707

wants to merge 5 commits into from

Conversation

YoGhurt111
Copy link
Contributor

No description provided.

@YoGhurt111 YoGhurt111 enabled auto-merge (squash) April 10, 2024 07:49
@@ -19,7 +20,9 @@ type DriverStateTestSuite struct {

func (s *DriverStateTestSuite) SetupTest() {
s.ClientTestSuite.SetupTest()
state, err := New(context.Background(), s.RPCClient)
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*200)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if use time.Millisecond*200 is a good choice here, shall we just manually cancel the ctx here?

@davidtaikocha
Copy link
Member

Closed by #713

auto-merge was automatically disabled April 11, 2024 07:22

Pull request was closed

@YoGhurt111 YoGhurt111 deleted the fix-local-test branch April 11, 2024 08:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants