Skip to content

Commit 13c3591

Browse files
authored
Fix test enivronment determination (#342)
* Fix test enivronment determination * Remove -v flag from CI
1 parent 5545f74 commit 13c3591

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Building docker containers using docker-compose
2626
run: GO_MOD=go.mod docker-compose up -d --build
2727
- name: Golang Tests
28-
run: go test -v ./...
28+
run: go test ./...
2929
working-directory: ./backend
3030
frontend_testing:
3131
runs-on: ubuntu-latest

backend/docs/WritingTests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Once you've written your test it can be run with:
3131
```sh
3232
# To run specifically this test
3333
go test myTest_test.go
34-
# To run all tests
34+
# To run all tests in the current directory and subdirectories
3535
go test ./...
3636
```
3737

backend/environment/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ func init() {
1212

1313
// package to quickly grab information regarding the execution environment
1414
func IsTestingEnvironment() bool {
15-
return flag.Lookup("test.v").Value.(flag.Getter).Get().(bool)
15+
return flag.Lookup("test.v") != nil
1616
}

0 commit comments

Comments
 (0)