From f3727a5c3d27ab0da650665003fc1adeecc5e3a8 Mon Sep 17 00:00:00 2001 From: Stefano Baghino Date: Wed, 27 Nov 2019 11:08:24 +0100 Subject: [PATCH] Fix wrong token usage in auth tests --- .../sandbox/auth/ExpiringStreamServiceCallAuthTests.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/sandbox/src/test/lib/scala/com/digitalasset/platform/sandbox/auth/ExpiringStreamServiceCallAuthTests.scala b/ledger/sandbox/src/test/lib/scala/com/digitalasset/platform/sandbox/auth/ExpiringStreamServiceCallAuthTests.scala index 7bfb4df32b96..a800ba393f0e 100644 --- a/ledger/sandbox/src/test/lib/scala/com/digitalasset/platform/sandbox/auth/ExpiringStreamServiceCallAuthTests.scala +++ b/ledger/sandbox/src/test/lib/scala/com/digitalasset/platform/sandbox/auth/ExpiringStreamServiceCallAuthTests.scala @@ -48,7 +48,7 @@ trait ExpiringStreamServiceCallAuthTests[T] toHeader(expiringIn(Duration.ofSeconds(5), readWriteToken(mainActor))) private def canReadAsMainActorExpiresInFiveSeconds = - toHeader(expiringIn(Duration.ofSeconds(5), readWriteToken(mainActor))) + toHeader(expiringIn(Duration.ofSeconds(5), readOnlyToken(mainActor))) it should "break a stream in flight upon read-only token expiration" in { val _ = Delayed.Future.by(10.seconds)(submitAndWait())