Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
kthomas committed Feb 8, 2024
1 parent 5cdb2f4 commit 3d06024
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions spec/spec_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ func startNATS(storeDir string) (*server.Server, *nats.Conn, *int, error) {
}

// return a new NATS connection to the server running on `_fixtures.natsPort`
func newNATSConn() (*nats.Conn, error) {
nc, err := nats.Connect(_fixtures.natsServer.ClientURL())
if err != nil {
fmt.Printf("failed to connect to NATS server: %s", err)
return nil, err
}
// func newNATSConn() (*nats.Conn, error) {
// nc, err := nats.Connect(_fixtures.natsServer.ClientURL())
// if err != nil {
// fmt.Printf("failed to connect to NATS server: %s", err)
// return nil, err
// }

return nc, err
}
// return nc, err
// }

func stopDaggerEngine() {
cli, err := client.NewClientWithOpts(client.FromEnv)
Expand All @@ -149,4 +149,3 @@ func stopDaggerEngine() {
_ = cli.ContainerStop(ctx, c.ID, container.StopOptions{})
}
}

0 comments on commit 3d06024

Please sign in to comment.