Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
m110 committed Aug 26, 2024
1 parent 3af8b51 commit a1435af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# for Watermill development purposes.
# For Watermill based application docker please check https://watermill.io/docs/getting-started/

version: '3'
services:
googlecloud:
image: google/cloud-sdk:360.0.0
image: google/cloud-sdk:489.0.0
entrypoint: gcloud --quiet beta emulators pubsub start --host-port=0.0.0.0:8085 --verbosity=debug --log-http
ports:
- 8085:8085
Expand Down
5 changes: 2 additions & 3 deletions pkg/googlecloud/pubsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ func produceMessages(t *testing.T, topic string, howMany int) {
}

func TestPublishOrdering(t *testing.T) {
t.Skip("to investigate")

pub, sub := newPubSub(
t,
true,
Expand Down Expand Up @@ -330,7 +328,8 @@ func TestPublishOrdering(t *testing.T) {
for i := 0; i < len(toPublish); i++ {
select {
case msg := <-messages:
received[msg.Metadata["ordering"]] = append(received[msg.Metadata["ordering"]], msg.UUID)
key := msg.Metadata["ordering"]
received[key] = append(received[key], msg.UUID)
msg.Ack()
case <-time.After(5 * time.Second):
t.Fatal("timeout")
Expand Down

0 comments on commit a1435af

Please sign in to comment.