-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tests to use mock requests, not servers
- Loading branch information
1 parent
4d35c6c
commit 103ab81
Showing
11 changed files
with
158 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ workflows: | |
- test | ||
- test-windows | ||
- test-mac | ||
- test-mac-12-go-1-18 | ||
- release: | ||
# Only run this job on git tag pushes | ||
filters: | ||
|
@@ -60,6 +61,26 @@ jobs: | |
command: | | ||
mkdir -p /tmp/logs | ||
go test -v ./... --timeout 5m | tee /tmp/logs/test.log | ||
# Specifically test Go 1.18 on mac to catch syscall issues | ||
test-mac-12-go-1-18: | ||
macos: | ||
xcode: 12.5.1 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install go | ||
command: | | ||
brew install [email protected] | ||
# Make Go available in the PATH upon first being installed | ||
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/distiller/.bash_profile | ||
- run: | ||
name: run tests | ||
command: | | ||
mkdir -p /tmp/logs | ||
go test -v ./... --timeout 5m | tee /tmp/logs/test.log | ||
release: | ||
docker: | ||
- image: cimg/go:1.17 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.