From ff5e832bd6324b6f06826dac6d2ec6599dc70bd9 Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Tue, 14 Jun 2016 01:41:17 +1000 Subject: [PATCH] feat(publish): automatically write pact file on shutdown/teardown --- dsl/pact.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dsl/pact.go b/dsl/pact.go index 52bd71a9e..26dd0f90b 100644 --- a/dsl/pact.go +++ b/dsl/pact.go @@ -88,6 +88,8 @@ func (p *Pact) Setup() *Pact { fmt.Sprintf("--pact-specification-version %d", p.SpecificationVersion), fmt.Sprintf("--pact-dir %s", p.PactDir), fmt.Sprintf("--log %s/pact.log", p.LogDir), + fmt.Sprintf("--consumer %s", p.Consumer), + fmt.Sprintf("--provider %s", p.Provider), } client := &PactClient{Port: p.Port} p.pactClient = client