-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only run one background puma-dev per platform; os.Exit will shutdown
only run one server per set of server test scenarios, so os.Exit will handle the cleanup put shutdown back inside main -- it calls os.Exit() which borks testing pull out additional state into each platform spec ensure we run things on completely non-standard ports missed an import
- Loading branch information
1 parent
d65a2ff
commit 8fcf220
Showing
6 changed files
with
160 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/puma/puma-dev/dev/devtest" | ||
"github.com/puma/puma-dev/homedir" | ||
) | ||
|
||
func TestMainPumaDev_Linux(t *testing.T) { | ||
appLinkDir := homedir.MustExpand("~/.gotest-linux-puma-dev") | ||
|
||
defer linkAppsForTesting(t, appLinkDir)() | ||
|
||
SetFlagOrFail(t, "http-port", "65080") | ||
SetFlagOrFail(t, "https-port", "65443") | ||
|
||
bootConfiguredLivePumaServer(t, appLinkDir) | ||
|
||
runPlatformAgnosticTestScenarios(t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.