Skip to content

Commit

Permalink
test: tweaks; retry needed
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Feb 23, 2022
1 parent 79b9051 commit 6fe0b7e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"os/exec"
Expand Down Expand Up @@ -282,7 +281,7 @@ func TestGH32(t *testing.T) {
}
}()
base := fmt.Sprintf("http://localhost:%d", 39200)
resp, err := http.Get(base)
resp, err := pester.Get(base)
if err != nil {
t.Fatalf("request failed: %v", err)
}
Expand All @@ -295,7 +294,6 @@ func TestGH32(t *testing.T) {
t.Errorf("could not open fixture: %v", err)
}
defer f.Close()

r := Runner{
Servers: []string{"http://localhost:39200"},
BatchSize: 5000,
Expand All @@ -307,15 +305,13 @@ func TestGH32(t *testing.T) {
File: f,
Verbose: true,
}

// this should fail with #32
err = r.Run()
if err != nil {
t.Logf("expected err: %v", err)
} else {
t.Fatalf("expected fail, see #32")
}

// w/o doctype, we should be good
r = Runner{
Servers: []string{"http://localhost:39200"},
Expand All @@ -331,9 +327,6 @@ func TestGH32(t *testing.T) {
if err != nil {
t.Fatalf("unexpected failure: %v", err)
}
if err := c.Terminate(ctx); err != nil {
t.Errorf("could not kill container: %v", err)
}
}

type SearchResponse6 struct {
Expand Down

0 comments on commit 6fe0b7e

Please # to comment.