fix test step
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-03-18 14:47:45 +07:00
parent e3d2ba38a8
commit 823786c3ea
2 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,7 @@ steps:
- name: test
image: golang
commands:
- go test
- go test ./...
- name: scp
image: appleboy/drone-scp

View File

@ -1,6 +1,9 @@
package calories
import "testing"
import (
"fmt"
"testing"
)
func TestCalcCalories(t *testing.T) {
t.Parallel()
@ -31,7 +34,7 @@ func TestCalcCalories(t *testing.T) {
{
"чай text",
"чай",
39,
79,
false,
},
}
@ -46,6 +49,7 @@ func TestCalcCalories(t *testing.T) {
return
}
if count != tt.want {
fmt.Println(count, tt.want)
t.Errorf("error count: %v", err)
return
}