20 lines
492 B
Go
20 lines
492 B
Go
package gateway
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func TestNewService_StrictOperationIsolationOption(t *testing.T) {
|
|
svc := NewService(zap.NewNop(), WithStrictOperationIsolation(true))
|
|
t.Cleanup(svc.Shutdown)
|
|
|
|
if svc.card == nil {
|
|
t.Fatalf("expected card processor to be initialised")
|
|
}
|
|
if got, want := payoutExecutionModeName(svc.card.executionMode), payoutExecutionModeStrictIsolatedName; got != want {
|
|
t.Fatalf("execution mode mismatch: got=%q want=%q", got, want)
|
|
}
|
|
}
|