Skip to content

Commit

Permalink
improvements to testjson/testdata packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Oct 9, 2020
1 parent 023c7ce commit b353fec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
12 changes: 0 additions & 12 deletions testjson/internal/stub/timeout_test.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// +build stubpkg

/*Package stub is used to generate testdata for the testjson package.
/*Package withfails is used to generate testdata for the testjson package.
*/
package stub
package withfails

import (
"fmt"
Expand Down
16 changes: 16 additions & 0 deletions testjson/internal/withfails/timeout_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// +build stubpkg

package withfails

import (
"os"
"testing"
"time"
)

func TestTimeout(t *testing.T) {
if os.Getenv("TEST_ALL") != "true" {
t.Skip("skipping slow test")
}
time.Sleep(time.Minute)
}

0 comments on commit b353fec

Please sign in to comment.