Skip to content

Commit

Permalink
cmd/akashd: shrug() flapping test
Browse files Browse the repository at this point in the history
refs #124
  • Loading branch information
boz committed Mar 27, 2018
1 parent 3b69037 commit 668c462
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ jobs:
- make image
if: type = cron

- name: test-skipped
os: linux
go: "1.10"
sudo: required
env: TEST_UNSKIP=true
script:
- go test -v -count=1 $(glide novendor)
if: type = cron

matrix:
allow_failures:
- env: TEST_UNSKIP=true

cache:
directories:
- $HOME/.glide
Expand Down
5 changes: 4 additions & 1 deletion testutil/shrug.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ package testutil

import (
"fmt"
"os"
"testing"
)

const shrug = `¯\_(ツ)_/¯`

func Shrug(t *testing.T, issue int) {
t.Skip(fmt.Sprintf("%v - https://github.com/ovrclk/akash/issues/%d", shrug, issue))
if os.Getenv("TEST_UNSKIP") == "" {
t.Skip(fmt.Sprintf("%v - https://github.com/ovrclk/akash/issues/%d", shrug, issue))
}
}

0 comments on commit 668c462

Please sign in to comment.