updated test url

kick off the docker after static checks
This commit is contained in:
Aleksandr Bochev 2022-10-02 10:15:05 +02:00 committed by Aleksandr
parent 18f35a09b3
commit c9ca587420
2 changed files with 5 additions and 5 deletions

View File

@ -22,9 +22,6 @@ jobs:
toolchain: stable toolchain: stable
components: rustfmt, clippy components: rustfmt, clippy
- name: Setup Test Enviroment
run: docker-compose up -d
- name: Check formatting - name: Check formatting
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -37,6 +34,9 @@ jobs:
command: check command: check
args: --workspace --all-targets --all-features args: --workspace --all-targets --all-features
- name: Setup Test Enviroment
run: docker-compose up -d
- name: Cargo Test - name: Cargo Test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:

View File

@ -535,7 +535,7 @@ impl TransClient {
/// let basic_auth = BasicAuth{user: env::var("TUSER")?, password: env::var("TPWD")?}; /// let basic_auth = BasicAuth{user: env::var("TUSER")?, password: env::var("TPWD")?};
/// let mut client = TransClient::with_auth(&url, basic_auth); /// let mut client = TransClient::with_auth(&url, basic_auth);
/// let add: TorrentAddArgs = TorrentAddArgs { /// let add: TorrentAddArgs = TorrentAddArgs {
/// filename: Some("https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso.torrent".to_string()), /// filename: Some("https://releases.ubuntu.com/jammy/ubuntu-22.04.1-desktop-amd64.iso.torrent".to_string()),
/// ..TorrentAddArgs::default() /// ..TorrentAddArgs::default()
/// }; /// };
/// let res: RpcResponse<TorrentAddedOrDuplicate> = client.torrent_add(add).await?; /// let res: RpcResponse<TorrentAddedOrDuplicate> = client.torrent_add(add).await?;
@ -641,7 +641,7 @@ mod tests {
info!("Client is ready!"); info!("Client is ready!");
let add: TorrentAddArgs = TorrentAddArgs { let add: TorrentAddArgs = TorrentAddArgs {
filename: Some( filename: Some(
"https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso.torrentt" "https://releases.ubuntu.com/jammy/ubuntu-22.04.1-desktop-amd64.iso.torrentt"
.to_string(), .to_string(),
), ),
..TorrentAddArgs::default() ..TorrentAddArgs::default()