Skip to content

Commit fcf98c9

Browse files
committed
Don't skip this interoperability test for nginx-0.8.42+. It fails like anything else that uses eval module and we shouldn't hide it.
1 parent 77f0c0b commit fcf98c9

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

t/eval.t

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,28 @@ our $http_config = <<'_EOC_';
1616
}
1717
_EOC_
1818

19-
worker_connections(128);
2019
run_tests();
2120

22-
no_diff();
23-
2421
__DATA__
2522
2623
=== TEST 1: sanity
27-
--- http_config
28-
upstream database {
29-
postgres_server 127.0.0.1:$TEST_NGINX_POSTGRESQL_PORT
30-
dbname=ngx_test user=ngx_test password=ngx_test;
31-
}
32-
33-
server {
34-
listen 8100;
35-
36-
location / {
37-
echo -n "it works!";
38-
}
39-
}
24+
--- http_config eval: $::http_config
4025
--- config
4126
location /eval {
4227
eval_subrequest_in_memory off;
4328
4429
eval $backend {
4530
postgres_pass database;
46-
postgres_query "select 'http://127.0.0.1:8100'";
31+
postgres_query "select '$scheme://127.0.0.1:$server_port/echo'";
4732
postgres_output value 0 0;
4833
}
4934
5035
proxy_pass $backend;
5136
}
37+
38+
location /echo {
39+
echo -n "it works!";
40+
}
5241
--- request
5342
GET /eval
5443
--- error_code: 200
@@ -57,7 +46,7 @@ Content-Type: text/plain
5746
--- response_body eval
5847
"it works!"
5948
--- timeout: 10
60-
--- skip_nginx2: 3: < 0.8.25 or >= 0.8.42
49+
--- skip_nginx: 3: < 0.8.25
6150
6251
6352
@@ -83,4 +72,3 @@ Content-Type: text/plain
8372
--- response_body eval
8473
"test"
8574
--- timeout: 10
86-
--- skip_nginx: 3: >= 0.8.42

0 commit comments

Comments
 (0)