Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! add testing
  • Loading branch information
coadler committed Jan 13, 2023
commit 1a56dbe80814930b8578998eea43e034d03fcf7a
12 changes: 6 additions & 6 deletions cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ func TestServer(t *testing.T) {
serverErr <- root.ExecuteContext(ctx)
}()

require.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
stat, err := os.Stat(fiName)
return err == nil && stat.Size() > 0
}, testutil.WaitShort, testutil.IntervalFast)
Expand Down Expand Up @@ -1184,7 +1184,7 @@ func TestServer(t *testing.T) {
serverErr <- root.ExecuteContext(ctx)
}()

require.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
stat, err := os.Stat(fi.Name())
return err == nil && stat.Size() > 0
}, testutil.WaitShort, testutil.IntervalFast)
Expand Down Expand Up @@ -1248,7 +1248,7 @@ func TestServer(t *testing.T) {
serverErr <- root.ExecuteContext(ctx)
}()

require.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
stat, err := os.Stat(fi.Name())
return err == nil && stat.Size() > 0
}, testutil.WaitShort, testutil.IntervalFast)
Expand Down Expand Up @@ -1294,15 +1294,15 @@ func TestServer(t *testing.T) {
serverErr <- root.ExecuteContext(ctx)
}()

require.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
stat, err := os.Stat(fi1.Name())
return err == nil && stat.Size() > 0
}, testutil.WaitShort, testutil.IntervalFast)
require.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
stat, err := os.Stat(fi2.Name())
return err == nil && stat.Size() > 0
}, testutil.WaitShort, testutil.IntervalFast)
require.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
stat, err := os.Stat(fi3.Name())
return err == nil && stat.Size() > 0
}, testutil.WaitShort, testutil.IntervalFast)
Expand Down