我正在尝试与 Pact 和 Pact Broker 创建一个简单的消费者-提供者合同。
消费者正在工作,它按预期将交互发布到代理,但提供者在运行测试时失败。
错误是:
--- FAIL: TestPact (10.14s)
pact.go:270: Error: Expected server to start < 10s. Timed out waiting for Daemon on port 0 - are you
sure it's running?
这是提供者https://github.com/tutabeier/pact-consumer-provider/tree/master/provider的回购
最具体地说,这里是测试: https ://github.com/tutabeier/pact-consumer-provider/blob/master/provider/cmd/provider/main_test.go
我不知道我做错了什么。