Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
Increased conformance test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Pasztor committed Mar 24, 2021
1 parent c5e69ed commit 7941435
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.9.23: Increased conformance test timeout

This release increases the timeouts on the conformance tests.

## 0.9.22: Changing ChannelRejection to log.Message

In this release the `ChannelRejection` interface is changed to be a `log.Message` type to afford better compatibility and avoid exposing information to users that shouldn't be exposed. It also adds the `NewChannelRejection` method to make it easier to create rejection messages.
Expand Down
16 changes: 8 additions & 8 deletions conformanceTestSuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *conformanceTestSuite) singleProgramShouldRun(t *testing.T) {
user,
), logger)
srv.Start()
defer srv.Stop(10 * time.Second)
defer srv.Stop(10 * time.Minute)

client := NewTestClient(srv.GetListen(), srv.GetHostKey(), user, logger)
connection, err := client.Connect()
Expand All @@ -42,7 +42,7 @@ func (c *conformanceTestSuite) singleProgramShouldRun(t *testing.T) {
if err := session.Exec("echo \"Hello world!\""); err != nil {
t.Fatal(err)
}
timeout, cancel := context.WithTimeout(context.Background(), 60*time.Second)
timeout, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
if err := session.WaitForStdout(timeout, []byte("Hello world!\n")); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -71,7 +71,7 @@ func (c *conformanceTestSuite) settingEnvVariablesShouldWork(t *testing.T) {
user,
), logger)
srv.Start()
defer srv.Stop(10 * time.Second)
defer srv.Stop(10 * time.Minute)

client := NewTestClient(srv.GetListen(), srv.GetHostKey(), user, logger)
connection, err := client.Connect()
Expand All @@ -88,7 +88,7 @@ func (c *conformanceTestSuite) settingEnvVariablesShouldWork(t *testing.T) {
if err := session.Exec("echo \"$FOO\""); err != nil {
t.Fatal(err)
}
timeout, cancel := context.WithTimeout(context.Background(), 60*time.Second)
timeout, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
if err := session.WaitForStdout(timeout, []byte("Hello world!\n")); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -117,7 +117,7 @@ func (c *conformanceTestSuite) runningInteractiveShellShouldWork(t *testing.T) {
user,
), logger)
srv.Start()
defer srv.Stop(10 * time.Second)
defer srv.Stop(10 * time.Minute)

client := NewTestClient(srv.GetListen(), srv.GetHostKey(), user, logger)
connection, err := client.Connect()
Expand Down Expand Up @@ -200,7 +200,7 @@ func (c *conformanceTestSuite) reportingExitCodeShouldWork(t *testing.T) {
user,
), logger)
srv.Start()
defer srv.Stop(10 * time.Second)
defer srv.Stop(10 * time.Minute)

client := NewTestClient(srv.GetListen(), srv.GetHostKey(), user, logger)
connection, err := client.Connect()
Expand Down Expand Up @@ -238,7 +238,7 @@ func (c *conformanceTestSuite) sendingSignalsShouldWork(t *testing.T) {
user,
), logger)
srv.Start()
defer srv.Stop(10 * time.Second)
defer srv.Stop(10 * time.Minute)

client := NewTestClient(srv.GetListen(), srv.GetHostKey(), user, logger)
connection, err := client.Connect()
Expand All @@ -255,7 +255,7 @@ func (c *conformanceTestSuite) sendingSignalsShouldWork(t *testing.T) {
if err := session.Signal("USR1"); err != nil {
t.Fatal(err)
}
timeout, cancel := context.WithTimeout(context.Background(), 60*time.Second)
timeout, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
if err := session.WaitForStdout(timeout, []byte("USR1 received\n")); err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 7941435

Please sign in to comment.