test: mark TestToolsContainer as failed if error occurs (#84)

* test: mark TestToolsContainer as failed if error occurs

* add trangmaiq

Co-authored-by: Trang Mai <tqmai@axon.com>
This commit is contained in:
Trang Mai 2022-08-30 15:03:20 +07:00 committed by GitHub
parent ea1d597b33
commit 710f6e9f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -263,6 +263,7 @@ Big shout-out to them!
- ![](https://github.com/eventi.png?size=24) [@eventi](https://github.com/eventi)
- ![](https://github.com/Bourne-ID.png?size=24) [@Bourne-ID](https://github.com/Bourne-ID)
- ![](https://github.com/akwan.png?size=24) [@akwan](https://github.com/akwan)
- ![](https://github.com/trangmaiq.png?size=24) [@trangmaiq](https://github.com/trangmaiq)
If you feel you're missing from this list, feel free to add yourself in a PR.

View File

@ -10,7 +10,10 @@ import (
func TestToolsContainer(t *testing.T) {
image := "nixos/nix"
projectRoot, _ := filepath.Abs("../")
projectRoot, err := filepath.Abs("../")
if err != nil {
t.FailNow()
}
options := &docker.RunOptions{
Remove: true,