fix warmup checker
This commit is contained in:
1 parent
5afe75907e
commit
0f09642e91
1 file changed
+1
-2
@@ -25,8 +25,7 @@ class Warmup(Challenge):
|
|||||||
try:
|
try:
|
||||||
url = f'http://localhost:{self.port}/'
|
url = f'http://localhost:{self.port}/'
|
||||||
r = requests.get(url, timeout=5)
|
r = requests.get(url, timeout=5)
|
||||||
print(r.text)
|
assert "Simple file viewing application" in r.text, 'Warmup app not available'
|
||||||
assert "Simple file viewing application" in r.text.lower(), 'Warmup app not available'
|
|
||||||
|
|
||||||
with open(self.flag_location, 'r') as f:
|
with open(self.flag_location, 'r') as f:
|
||||||
host_flag = f.read().strip()
|
host_flag = f.read().strip()
|
||||||
|
|||||||
Reference in new issue
Block a user