Skip to content

Commit

Permalink
Rewrite grpc wait server test to stabilize CI. (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Aug 7, 2024
1 parent 2819c8f commit 15788f2
Show file tree
Hide file tree
Showing 12 changed files with 455 additions and 350 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test-unit:

.PHONY: test-integration
test-integration:
go test -v -tags=integration -timeout 600s -p 1 ./...
go test -v -count=1 -tags=integration -timeout 600s -p 1 ./...

.PHONY: check-diff
check-diff: spec
Expand Down
3 changes: 0 additions & 3 deletions cmd/metal-api/internal/grpc/boot-service-wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ func (b *BootService) Wait(req *v1.BootServiceWaitRequest, srv v1.BootService_Wa
}

func (b *BootService) initWaitEndpoint() error {
if b.publisher == nil || b.consumer == nil {
return nil
}
channel := fmt.Sprintf("alloc-%s#ephemeral", uuid.NewString())
return b.consumer.With(bus.LogLevel(bus.Warning)).
MustRegister(metal.TopicAllocation.Name, channel).
Expand Down
Loading

0 comments on commit 15788f2

Please sign in to comment.