blob: 4cf2df69fa390fcc79d021295e0c6e6f5233b84e [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This is funky delaying and backgrounding the client request, but I just
# could not get the command executing in the network space to go to background
# without blocking the Uranium test runner.
(sleep 1; curl -i http://127.0.0.1:${1}/not-blocked ) &
sudo ip netns exec testserver nc -4 -l $2 -c "sh ./delay-server.sh"