fix twap tests

This commit is contained in:
c9s 2024-11-20 18:12:15 +08:00
parent f2366908c3
commit 7da83e9e6c
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -81,6 +81,9 @@ func bindMockMarketDataStream(mockStream *mocks.MockStream, stream *types.Standa
mockStream.EXPECT().OnConnect(Catch(func(x any) {
stream.OnConnect(x.(func()))
})).AnyTimes()
mockStream.EXPECT().OnDisconnect(Catch(func(x any) {
stream.OnDisconnect(x.(func()))
})).AnyTimes()
}
func bindMockUserDataStream(mockStream *mocks.MockStream, stream *types.StandardStream) {