Skip to content

Commit

Permalink
Delete all subscriptions after test
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed May 15, 2024
1 parent 9295b85 commit 9fd174c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<java.version>21</java.version>
<entur.google.pubsub.emulator.download.skip>true</entur.google.pubsub.emulator.download.skip>

<entur.helpers.version>2.20</entur.helpers.version>
<entur.helpers.version>2.21</entur.helpers.version>

<entur-google-pubsub-version>${entur.helpers.version}</entur-google-pubsub-version>
<gcp-storage.version>${entur.helpers.version}</gcp-storage.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package no.entur.uttu.export.messaging;

import static org.testcontainers.shaded.org.awaitility.Awaitility.await;

import com.google.api.gax.core.CredentialsProvider;
import com.google.api.gax.core.NoCredentialsProvider;
import com.google.cloud.spring.pubsub.core.PubSubTemplate;
Expand Down Expand Up @@ -90,9 +88,7 @@ public void setup() {

@After
public void teardown() {
// Drain any messages that are still in the subscription so that they don't interfere with
// subsequent tests.
await().until(() -> subscriberTemplate.pullAndAck(queueName, 1000, true).isEmpty());
enturGooglePubSubAdmin.deleteAllSubscriptions();
}

// By default, autoconfiguration will initialize application default credentials.
Expand Down

0 comments on commit 9fd174c

Please sign in to comment.