Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrienk committed Sep 16, 2024
1 parent e2b3f71 commit f3ee9d5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions gorfc/gorfc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func TestCancelCall(t *testing.T) {
_, err = c.CallContext(ctx, "RFC_PING_AND_WAIT", map[string]interface{}{
"SECONDS": 4,
})
assert.NoError(t, err)
assert.ErrorIs(t, err, context.DeadlineExceeded)

_, err = c.Call("RFC_PING", map[string]interface{}{})
assert.NoError(t, err)
Expand Down Expand Up @@ -414,12 +414,15 @@ func TestErrorFunctionCall(t *testing.T) {

func abapSystem() ConnectionParameters {
return ConnectionParameters{
"user": "demo",
"passwd": "welcome",
"ashost": "10.68.110.51",
"sysnr": "00",
"client": "620",
"lang": "EN",
"mshost": "sapcq2.coop.no",
"sysid": "401",
"group": "CQ2_RFC_group",
"msserv": "3602",
"client": "401",
"user": "API_CUST_DIR",
"passwd": "y9S37TJsYIf11JVljRIg",
"lang": "EN",
"RFC_TRACE": "0",
}
}

Expand Down

0 comments on commit f3ee9d5

Please sign in to comment.