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

This commit is contained in:
Владимир Фёдоров 2023-03-18 14:36:41 +07:00
parent 871b6c6dcd
commit e24c6813a7
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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