Skip to content

Commit 1480091

Browse files
committed
Ensure we do use a different port than other tests.
Motivated by S415-009.
1 parent 301ed77 commit 1480091

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

regtests/0282_doc_wsdl_a/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import sys
33

44
exec_cmd('ada2wsdl',
5-
['-q', '-f', '-I.', '-doc', '-lit', '-Pwsdl_a_main',
6-
'-a', 'http://localhost:7701', 'wsdl_a.ads', '-o', 'wsdl_a.wsdl'])
5+
['-q', '-f', '-doc', '-lit', '-Pwsdl_a_main',
6+
'-a', 'http://localhost:7713', 'wsdl_a.ads', '-o', 'wsdl_a.wsdl'])
77
exec_cmd('wsdl2aws',
88
['-q', '-f', '-cb', '-types', 'wsdl_a', 'wsdl_a.wsdl'])
99

regtests/0282_doc_wsdl_a/wsdl_a_main.adb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Ada Web Server --
33
-- --
4-
-- Copyright (C) 2016-2018, AdaCore --
4+
-- Copyright (C) 2016-2020, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it --
77
-- under terms of the GNU General Public License as published by the --
@@ -25,6 +25,7 @@ with SOAP.Dispatchers.Callback;
2525

2626
with WSDL_a_Server;
2727
with WSDL_a_Service.Client;
28+
with WSDL_a_Service.Server;
2829
with WSDL_a_Service.Types;
2930

3031
procedure WSDL_a_Main is
@@ -47,7 +48,7 @@ begin
4748
Schema => WSDL_a_Service.Schema);
4849

4950
Config.Set.Server_Host (Conf, "localhost");
50-
Config.Set.Server_Port (Conf, 7701);
51+
Config.Set.Server_Port (Conf, WSDL_a_Service.Server.Port);
5152

5253
Server.Start (WS, H, Conf);
5354

0 commit comments

Comments
 (0)