Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
776bb7d
feat: create pay before persist request flow
aimensahnoun May 6, 2024
d53c930
Merge branch 'master' of github.com:RequestNetwork/requestNetwork int…
aimensahnoun Jun 5, 2024
fc5e671
feat: add preparePaymentRequest
aimensahnoun Jun 5, 2024
4c41cdf
feat: add requestPayment to `createRequest` return
aimensahnoun Jun 5, 2024
e9d51c7
docs: document `persistRequest` method
aimensahnoun Jun 6, 2024
c2ec1c2
test: add creation and persistance tests for in-memory requests
aimensahnoun Jun 6, 2024
399217c
test: update transactiom-manager tests to check only relavant parts o…
aimensahnoun Jun 6, 2024
12631ac
test: updating request-client tests to check object containing simila…
aimensahnoun Jun 6, 2024
dee30bd
Merge branch 'master' into 1380-pay-before-persist
MantisClone Jul 9, 2024
a32f05c
Merge branch 'master' of github.com:RequestNetwork/requestNetwork int…
aimensahnoun Jul 12, 2024
0964179
Merge branch '1380-pay-before-persist' of github.com:RequestNetwork/r…
aimensahnoun Jul 12, 2024
6dffdfd
refactor: merge in memory variables into one object `inMemoryInfo`
aimensahnoun Jul 15, 2024
d3d9368
test: move `spyPersistTransaction` back to beforeEach
aimensahnoun Jul 16, 2024
a56c1aa
Merge branch 'master' of github.com:RequestNetwork/requestNetwork int…
aimensahnoun Jul 16, 2024
af2afa8
test: add logs to failing test
aimensahnoun Jul 16, 2024
186b163
test: add more logs to test
aimensahnoun Jul 16, 2024
8e91696
test: revert skip persistence
aimensahnoun Jul 16, 2024
613e6c3
test: add persistence back
aimensahnoun Jul 16, 2024
10ed848
test: add more logs to failing test
aimensahnoun Jul 16, 2024
638d730
test: increase failAtCall
aimensahnoun Jul 16, 2024
d4b611f
test: increase timeout
aimensahnoun Jul 16, 2024
0900c53
test: uncomment workflows
aimensahnoun Jul 16, 2024
91f0cc6
test: lower fail at call
aimensahnoun Jul 16, 2024
3dc465c
Revert to fail at call 6
MantisClone Jul 16, 2024
6df24aa
Revert debug log messages and extended timeout
MantisClone Jul 16, 2024
7ec1197
Throw error on unhandled request
MantisClone Jul 16, 2024
6b3513b
Add debug logging related to msw server
MantisClone Jul 16, 2024
8027e49
Print as strings
MantisClone Jul 16, 2024
0f0fe60
Fix debug logs
MantisClone Jul 16, 2024
6172c07
Try resetting handlers after each test
MantisClone Jul 16, 2024
ffc7559
Remove debug logs. Call `resetHandlers()` afterEach test
MantisClone Jul 16, 2024
e45294e
feat: skip refreshing if `skipePersistence` is active
aimensahnoun Jul 17, 2024
915b0a1
feat: emit confirmation on no-persist-http-data-access
aimensahnoun Jul 17, 2024
cf5884d
test: fix `in-memory request` tests
aimensahnoun Jul 17, 2024
8f50530
test: revert test changes
aimensahnoun Jul 17, 2024
e2dac67
fix: fix test
aimensahnoun Jul 17, 2024
55ec0b4
test: move in-memory reuqests to their own file
aimensahnoun Jul 17, 2024
8027739
test: move spyPersistTransatction to before all
aimensahnoun Jul 17, 2024
c3b08ad
refactor: update error message to be more clear
aimensahnoun Jul 17, 2024
11b3121
clarify error message
MantisClone Jul 17, 2024
ab44ab4
fix: skipPersistence doc
MantisClone Jul 17, 2024
7b71180
test: update test with updated error message
aimensahnoun Jul 17, 2024
a5d9668
fix: fix typo
aimensahnoun Jul 17, 2024
422e9e0
refactor: move `preparePaymentRequest` to the bottom of file
aimensahnoun Jul 17, 2024
3ccf360
refactor: rename `preparePaymentRequest` and `paymentRequest`
aimensahnoun Jul 17, 2024
157530f
chore: remove await from mockServer.close
aimensahnoun Jul 17, 2024
487dffe
chore: add warning to useMockStorage about overriding skipPersistence
aimensahnoun Jul 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: increase timeout
  • Loading branch information
aimensahnoun committed Jul 16, 2024
commit d4b611febdfa8c3b6dd67b519ccb479a0140ff7b
114 changes: 57 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,63 +525,63 @@ workflows:
- test-request-client:
requires:
- build
- test-transaction-manager:
requires:
- build
- test-data-access:
requires:
- build
- test-data-format:
requires:
- build
- test-ethereum-storage:
requires:
- build
- test-smart-contracts:
requires:
- build
- test-request-logic:
requires:
- build
- test-multi-format:
requires:
- build
- test-advanced-logic:
requires:
- build
- test-request-node:
requires:
- build
- test-utils:
requires:
- build
- test-currency:
requires:
- build
- test-epk-signature:
requires:
- build
- test-epk-decryption:
requires:
- build
- test-web3-signature:
requires:
- build
- test-usage-examples:
requires:
- build
- test-toolbox:
requires:
- build
- test-integration-test:
requires:
- build
- test-payment-detection:
requires:
- build
- test-payment-processor:
requires:
- build
# - test-transaction-manager:
# requires:
# - build
# - test-data-access:
# requires:
# - build
# - test-data-format:
# requires:
# - build
# - test-ethereum-storage:
# requires:
# - build
# - test-smart-contracts:
# requires:
# - build
# - test-request-logic:
# requires:
# - build
# - test-multi-format:
# requires:
# - build
# - test-advanced-logic:
# requires:
# - build
# - test-request-node:
# requires:
# - build
# - test-utils:
# requires:
# - build
# - test-currency:
# requires:
# - build
# - test-epk-signature:
# requires:
# - build
# - test-epk-decryption:
# requires:
# - build
# - test-web3-signature:
# requires:
# - build
# - test-usage-examples:
# requires:
# - build
# - test-toolbox:
# requires:
# - build
# - test-integration-test:
# requires:
# - build
# - test-payment-detection:
# requires:
# - build
# - test-payment-processor:
# requires:
# - build

# Release a next version package everytime we merge to master
- next-release:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('HttpRequestNetwork', () => {
console.log('Checking for error...');
await checkForError(request);
console.log('Test should have passed by now');
});
}, 100000);

it('reduce the expected amount', async () => {
failAtCall(6);
Expand Down