未验证 提交 7ac39014 编写于 作者: J Josh van Leeuwen 提交者: GitHub

Fix race condition in `runtime_test.go`. (#6656)

Signed-off-by: Njoshvanl <me@joshvanl.dev>
上级 92ac95cb
......@@ -6422,7 +6422,7 @@ func TestStartReadingFromBindings(t *testing.T) {
err := rt.startReadingFromBindings()
assert.NoError(t, err)
assert.Len(t, mockAppChannel.Calls, 1)
assert.True(t, mockAppChannel.AssertCalled(t, "InvokeMethod", mock.Anything, mock.Anything))
})
t.Run("No OPTIONS request when direction is specified", func(t *testing.T) {
......@@ -6459,6 +6459,6 @@ func TestStartReadingFromBindings(t *testing.T) {
err := rt.startReadingFromBindings()
assert.NoError(t, err)
assert.Len(t, mockAppChannel.Calls, 0)
assert.True(t, mockAppChannel.AssertNotCalled(t, "InvokeMethod", mock.Anything, mock.Anything))
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册