Skip to content

Commit 36cb050

Browse files
committed
Adds ConnectParrot
1 parent f5bdb55 commit 36cb050

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/docker/test_env/parrot.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ func NewParrot(networks []string, opts ...EnvComponentOption) *Parrot {
6060
return p
6161
}
6262

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+
6370
// WithTestInstance configures the MockServer with a test logger and test context.
6471
// It returns the updated MockServer instance for use in testing scenarios.
6572
func (p *Parrot) WithTestInstance(t *testing.T) *Parrot {

0 commit comments

Comments
 (0)