mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-20 09:56:49 +02:00
internal/api/interface.go: make Call() accept a context as parameter.
This commit is contained in:
parent
b815bcee44
commit
dbf59d1305
10 changed files with 47 additions and 30 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
|
|
@ -59,7 +60,7 @@ func TestDebugApi_Call(t *testing.T) {
|
|||
response: expected,
|
||||
}
|
||||
|
||||
response, msg := api.Call()
|
||||
response, msg := api.Call(context.Background())
|
||||
|
||||
assert.Equal(t, response, expected)
|
||||
assert.Equal(t, msg, "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue