Skip to content

Commit

Permalink
pull secret for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobsonchase committed Jan 8, 2024
1 parent 17a5609 commit e7c6693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
NGROK_TEST_ONLINE: 1
NGROK_TEST_LONG: 1
NGROK_TEST_FLAKEY: 1
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
Expand Down
7 changes: 1 addition & 6 deletions online_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"context"
"encoding/binary"
"encoding/hex"
"encoding/json"
"fmt"
"io"
"math/rand"
Expand Down Expand Up @@ -43,16 +42,12 @@ func (tl *testLogger) Log(context context.Context, level log.LogLevel, msg strin
cpy[k] = v
}
cpy["test"] = tl.testName
bs, err := json.Marshal(cpy)
if err != nil {
bs = []byte("<marshal error>")
}
lvl, err := log.StringFromLogLevel(level)
if err != nil {
lvl = "UKWN"
}
lvl = strings.ToUpper(lvl)
tl.t.Logf("%s [%s] %s %s", time.Now().Format(time.RFC3339), lvl, msg, string(bs))
tl.t.Logf("%s [%s] %s %v", time.Now().Format(time.RFC3339), lvl, msg, cpy)
}

func expectChanError(t *testing.T, ch <-chan error, timeout time.Duration) {
Expand Down

0 comments on commit e7c6693

Please sign in to comment.