few small fixes

This commit is contained in:
Matt Jaffee 2018-11-02 16:03:50 -05:00
parent d86e9ed3ea
commit 02aee931a1
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,6 @@
# This Dockerfile is used for cluster testing - it produces a much larger image
# and includes all of Go as well as some utilities.
FROM golang:1.11
LABEL maintainer "dev@pilosa.com"
@ -7,6 +10,7 @@ COPY . /go/src/github.com/pilosa/pilosa/
RUN cd /go/src/github.com/pilosa/pilosa \
&& CGO_ENABLED=0 make install-dep install FLAGS="-a"
# download pumba for fault injection
RUN wget https://github.com/alexei-led/pumba/releases/download/0.6.0/pumba_linux_amd64 -O /pumba
RUN chmod +x /pumba

View file

@ -58,6 +58,7 @@ func TestLongPauses(t *testing.T) {
if err != nil {
t.Fatalf("waiting on pumba pause cmd: %v", err)
}
// TODO change the sleep to wait for status to return to NORMAL or timeout once we have Status.State support in go-pilosa
fmt.Println("done with pause, waiting for stability")
time.Sleep(time.Second * 400)
fmt.Println("done waiting")
@ -79,6 +80,7 @@ func getPilosaClient(t *testing.T) *pilosa.Client {
time.Sleep(time.Millisecond * 40)
}
time.Sleep(time.Second * 2)
// TODO uncomment the following once we get the version of go-pilosa that has the State field on Status.
// start := time.Now()
// for i := 0; true; i++ {
// s, err := cli.Status()