fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
871b6c6dcd
commit
e24c6813a7
|
@ -6,6 +6,7 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- go test
|
||||||
- go build -o valera_tg_bot main.go
|
- go build -o valera_tg_bot main.go
|
||||||
|
|
||||||
- name: scp
|
- name: scp
|
||||||
|
|
|
@ -40,7 +40,7 @@ func TestCalcCalories(t *testing.T) {
|
||||||
tt := tt
|
tt := tt
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
count, err := calcCalories(tt.text)
|
count, err := CalcCalories(tt.text)
|
||||||
if (err != nil) != tt.wantErr {
|
if (err != nil) != tt.wantErr {
|
||||||
t.Errorf("error calc calories: %v", err)
|
t.Errorf("error calc calories: %v", err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue