Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Dec 19, 2022
1 parent 03c1e6b commit b7c251c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestMiddleware(t *testing.T) {
}

srv := &ssh.Server{
Handler: promwish.Middleware(listener.Addr().String(), "test", promwish.DefaultCommandFn)(func(s ssh.Session) {
Handler: promwish.Middleware(listener.Addr().String(), "test")(func(s ssh.Session) {
_, _ = s.Write([]byte("test"))
time.Sleep(500 * time.Millisecond)
}),
Expand Down

0 comments on commit b7c251c

Please sign in to comment.