3 # Copyright (c) 2016 Red Hat
4 # Luke Hinds (lhinds@redhat.com)
5 # This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Performs simple connection check, falls to default timeout of 10 seconds
15 TEST_HOST = "google.com"
20 host = socket.gethostbyname(TEST_HOST)
21 socket.create_connection((host, 80), 2)