Skip to content

Commit

Permalink
Updated ci.yml and add 10 seconds timeout to rpc tests
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Bylbas <romka.bulbas@gmail.com>
  • Loading branch information
Roman Bylbas committed Jan 23, 2025
1 parent cef46b4 commit 0a777c5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
- name: Run test suite
run: composer run-script test
env:
CASPER_PHP_SDK_TEST_NODE_URL: "95.216.240.135:7777"
CASPER_PHP_SDK_TEST_NODE_URL: ${{ secrets.CASPER_PHP_SDK_TEST_NODE_URL }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"phpunit/phpunit": "^9"
},
"scripts": {
"test": "php vendor/bin/phpunit tests"
"test": "php vendor/bin/phpunit"
}
}
11 changes: 11 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<testsuites>
<testsuite name="Casper PHP SDK Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="memory_limit" value="256M"/>
</php>
</phpunit>
1 change: 1 addition & 0 deletions tests/Functional/Rpc/RpcClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected function setUp(): void
}

$this->rpcClient = new RpcClient($nodeUrl);
sleep(10);
}

protected function tearDown(): void
Expand Down

0 comments on commit 0a777c5

Please sign in to comment.