-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Exolix with ChangeNOW (#340)
* Replace Exolix with ChangeNOW Closes #339 * Fix issue with missing tests --------- Co-authored-by: SondreB <sondre@outlook.com>
- Loading branch information
1 parent
f3c58a1
commit 412fc82
Showing
12 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
import { NetworkLoader } from "./network-loader"; | ||
const axios = require('axios'); | ||
// import { NetworkLoader } from "./network-loader"; | ||
// const axios = require('axios'); | ||
|
||
describe('NetworkLoader', () => { | ||
beforeEach(() => { }); | ||
// describe('NetworkLoader', () => { | ||
// beforeEach(() => { }); | ||
|
||
// it('Should return random server', () => { | ||
// // it('Should return random server', () => { | ||
|
||
// const loader = new NetworkLoader(); | ||
// // const loader = new NetworkLoader(); | ||
|
||
// const servers = [ | ||
// loader.getServer('STRAX', 'group1'), | ||
// loader.getServer('STRAX', 'group1'), | ||
// loader.getServer('STRAX', 'group1'), | ||
// loader.getServer('STRAX', 'group1'), | ||
// loader.getServer('STRAX', 'group1') | ||
// ]; | ||
// // const servers = [ | ||
// // loader.getServer('STRAX', 'group1'), | ||
// // loader.getServer('STRAX', 'group1'), | ||
// // loader.getServer('STRAX', 'group1'), | ||
// // loader.getServer('STRAX', 'group1'), | ||
// // loader.getServer('STRAX', 'group1') | ||
// // ]; | ||
|
||
// // Get unique list of servers. | ||
// var unique = [...new Set(servers)]; | ||
// // // Get unique list of servers. | ||
// // var unique = [...new Set(servers)]; | ||
|
||
// // Expect more than a si1ngle one (then random has not worked well). | ||
// expect(unique.length > 1).toBeTrue(); | ||
// }); | ||
// // // Expect more than a si1ngle one (then random has not worked well). | ||
// // expect(unique.length > 1).toBeTrue(); | ||
// // }); | ||
|
||
// it('All indexers in group1 should respond', async () => { | ||
// const servers = Servers.group1; | ||
// const entries = Object.values(servers); | ||
// // it('All indexers in group1 should respond', async () => { | ||
// // const servers = Servers.group1; | ||
// // const entries = Object.values(servers); | ||
|
||
// for (var i = 0; i < entries.length; i++) { | ||
// const entry = entries[i] as any; | ||
// // for (var i = 0; i < entries.length; i++) { | ||
// // const entry = entries[i] as any; | ||
|
||
// for (var j = 0; j < entry.length; j++) { | ||
// const server = entry[j]; | ||
// // for (var j = 0; j < entry.length; j++) { | ||
// // const server = entry[j]; | ||
|
||
// try { | ||
// var result = await axios.get(server + '/api/stats'); | ||
// expect(result.status).toBe(200); | ||
// } catch (error) { | ||
// throw new Error('Failed to verify indexer: ' + server); | ||
// } | ||
// } | ||
// } | ||
// }); | ||
// // try { | ||
// // var result = await axios.get(server + '/api/stats'); | ||
// // expect(result.status).toBe(200); | ||
// // } catch (error) { | ||
// // throw new Error('Failed to verify indexer: ' + server); | ||
// // } | ||
// // } | ||
// // } | ||
// // }); | ||
|
||
}); | ||
// }); |