Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
test against go version 1.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Apr 23, 2019
1 parent 6e1cbc5 commit 5265b21
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: go
go:
- 1.8.3
- 1.10.3
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
os:
- linux
- osx
Expand All @@ -12,6 +15,7 @@ before_install:
- go get github.com/modocache/gover
- go get github.com/keybase/go-updater/test
script:
- go vet ./...
- go test -v -coverprofile=command.coverprofile ./command
- go test -v -coverprofile=keybase.coverprofile ./keybase
- go test -v -coverprofile=process.coverprofile ./process
Expand Down
12 changes: 10 additions & 2 deletions keybase/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ func TestReportActionApply(t *testing.T) {
defer server.Close()

ctx := testContext(t)
actionResponse := updater.UpdatePromptResponse{updater.UpdateActionApply, false, 0}
actionResponse := updater.UpdatePromptResponse{
Action: updater.UpdateActionApply,
AutoUpdate: false,
SnoozeDuration: 0,
}
err := ctx.reportAction(actionResponse, &testUpdate, testOptions, server.URL, testReportTimeout)
assert.NoError(t, err)
}
Expand All @@ -82,7 +86,11 @@ func TestReportActionEmpty(t *testing.T) {
defer server.Close()

ctx := testContext(t)
actionResponse := updater.UpdatePromptResponse{"", false, 0}
actionResponse := updater.UpdatePromptResponse{
Action: "",
AutoUpdate: false,
SnoozeDuration: 0,
}
err := ctx.reportAction(actionResponse, &testUpdate, testOptions, server.URL, testReportTimeout)
assert.NoError(t, err)
}
Expand Down
6 changes: 3 additions & 3 deletions service/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
func TestLoggerNil(t *testing.T) {
log := logger{}
log.Debug(nil)
log.Debugf("", nil)
log.Debugf("")
log.Info(nil)
log.Infof("", nil)
log.Infof("")
log.Warning(nil)
log.Warningf("", nil)
log.Warningf("")
log.Error(nil)
log.Errorf("")
}
Expand Down

0 comments on commit 5265b21

Please sign in to comment.