Skip to content

Commit 0a777c5

Browse files
author
Roman Bylbas
committed
Updated ci.yml and add 10 seconds timeout to rpc tests
Signed-off-by: Roman Bylbas <romka.bulbas@gmail.com>
1 parent cef46b4 commit 0a777c5

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
- name: Run test suite
2929
run: composer run-script test
3030
env:
31-
CASPER_PHP_SDK_TEST_NODE_URL: "95.216.240.135:7777"
31+
CASPER_PHP_SDK_TEST_NODE_URL: ${{ secrets.CASPER_PHP_SDK_TEST_NODE_URL }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"phpunit/phpunit": "^9"
3030
},
3131
"scripts": {
32-
"test": "php vendor/bin/phpunit tests"
32+
"test": "php vendor/bin/phpunit"
3333
}
3434
}

phpunit.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
3+
<testsuites>
4+
<testsuite name="Casper PHP SDK Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<php>
9+
<ini name="memory_limit" value="256M"/>
10+
</php>
11+
</phpunit>

tests/Functional/Rpc/RpcClientTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ protected function setUp(): void
2828
}
2929

3030
$this->rpcClient = new RpcClient($nodeUrl);
31+
sleep(10);
3132
}
3233

3334
protected function tearDown(): void

0 commit comments

Comments
 (0)