Skip to content

Commit f3ee9d5

Browse files
committed
Fix assertion
1 parent e2b3f71 commit f3ee9d5

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

gorfc/gorfc_test.go

+10-7
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func TestCancelCall(t *testing.T) {
368368
_, err = c.CallContext(ctx, "RFC_PING_AND_WAIT", map[string]interface{}{
369369
"SECONDS": 4,
370370
})
371-
assert.NoError(t, err)
371+
assert.ErrorIs(t, err, context.DeadlineExceeded)
372372

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

415415
func abapSystem() ConnectionParameters {
416416
return ConnectionParameters{
417-
"user": "demo",
418-
"passwd": "welcome",
419-
"ashost": "10.68.110.51",
420-
"sysnr": "00",
421-
"client": "620",
422-
"lang": "EN",
417+
"mshost": "sapcq2.coop.no",
418+
"sysid": "401",
419+
"group": "CQ2_RFC_group",
420+
"msserv": "3602",
421+
"client": "401",
422+
"user": "API_CUST_DIR",
423+
"passwd": "y9S37TJsYIf11JVljRIg",
424+
"lang": "EN",
425+
"RFC_TRACE": "0",
423426
}
424427
}
425428

0 commit comments

Comments
 (0)