gsdk 2.0.0

Rust SDK of the Gear network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) Gear Technologies Inc.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

use gsdk::Api;
use std::time::Duration;

#[tokio::test]
async fn timeout() {
    Api::builder()
        .timeout(Duration::ZERO)
        .build()
        .await
        .expect_err("connection to RPC node with zero timeout must fail");
}