-
-
Save anonymous/8b86cf4b9db554ad9d65 to your computer and use it in GitHub Desktop.
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
diff --git a/t/mojo/daemon.t b/t/mojo/daemon.t | |
index c32f7ca..b8554b0 100644 | |
--- a/t/mojo/daemon.t | |
+++ b/t/mojo/daemon.t | |
@@ -87,6 +87,11 @@ is(Mojo::Server::Daemon->new->load_app($path)->config('script'), | |
# Load broken app | |
eval { | |
Mojo::Server::Daemon->new->load_app( | |
+ "$FindBin::Bin/lib/Mojo/LoaderTest/A.pm"); | |
+}; | |
+like $@, qr/did not return an application object/, 'right error'; | |
+eval { | |
+ Mojo::Server::Daemon->new->load_app( | |
"$FindBin::Bin/lib/Mojo/LoaderException.pm"); | |
}; | |
like $@, qr/^Can't load application/, 'right error'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment