We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5bdb55 commit 36cb050Copy full SHA for 36cb050
lib/docker/test_env/parrot.go
@@ -60,6 +60,13 @@ func NewParrot(networks []string, opts ...EnvComponentOption) *Parrot {
60
return p
61
}
62
63
+// ConnectParrot connects to an existing Parrot server with the specified URL.
64
+func ConnectParrot(url string) *Parrot {
65
+ return &Parrot{
66
+ Client: parrot.NewClient(url),
67
+ }
68
+}
69
+
70
// WithTestInstance configures the MockServer with a test logger and test context.
71
// It returns the updated MockServer instance for use in testing scenarios.
72
func (p *Parrot) WithTestInstance(t *testing.T) *Parrot {
0 commit comments