Skip to content

Commit

Permalink
Remove flaky test (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinaleonr authored Aug 12, 2024
2 parents 535b9b6 + 923e7b7 commit 4f03750
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions handler/ndt7_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"net/http"
"net/url"
"os"
"path/filepath"
"testing"
"time"

Expand Down Expand Up @@ -36,15 +35,6 @@ func TestClient_NDT7Download(t *testing.T) {
if err != nil && !websocket.IsCloseError(err, websocket.CloseNormalClosure) {
testingx.Must(t, err, "failed to download")
}

// Allow the server time to save the file. The client may stop before the server does.
time.Sleep(10 * time.Second)
// Verify a file was saved.
m, err := filepath.Glob(h.DataDir + "/ndt7/*/*/*/*")
testingx.Must(t, err, "failed to glob datadir: %s", h.DataDir)
if len(m) == 0 {
t.Errorf("no result files found")
}
}

// WARNING: this is not a reference client.
Expand Down

0 comments on commit 4f03750

Please sign in to comment.