Skip to content
Snippets Groups Projects
Commit 0c93c3e9 authored by ale's avatar ale
Browse files

do not run remote tests if AUTH_SERVER is unset

parent 00134ba9
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,8 @@ TEST_F(AuthClientTest, SSLFailsWithBadCAServerSide) {
int main(int argc, char **argv) {
server = getenv("AUTH_SERVER");
if (server == NULL) {
server = "localhost:1617";
printf("This test requires a local auth server. Set the AUTH_SERVER environment variable to its address.\n");
exit(0);
}
::testing::InitGoogleTest(&argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment