@@ -12,7 +12,7 @@ use influxdb::{Client, Error, ReadQuery, Timestamp};
12
12
/// INTEGRATION TEST
13
13
///
14
14
/// This test case tests whether the InfluxDB server can be connected to and gathers info about it - tested with async_std
15
- #[ async_std :: test]
15
+ #[ tokio :: test]
16
16
#[ cfg( not( tarpaulin_include) ) ]
17
17
async fn test_ping_influx_db_async_std ( ) {
18
18
let client = create_client ( "notusedhere" ) ;
@@ -46,7 +46,7 @@ async fn test_ping_influx_db_tokio() {
46
46
/// INTEGRATION TEST
47
47
///
48
48
/// This test case tests connection error
49
- #[ async_std :: test]
49
+ #[ tokio :: test]
50
50
#[ cfg( not( tarpaulin_include) ) ]
51
51
async fn test_connection_error ( ) {
52
52
let test_name = "test_connection_error" ;
@@ -67,7 +67,7 @@ async fn test_connection_error() {
67
67
/// INTEGRATION TEST
68
68
///
69
69
/// This test case tests the Authentication
70
- #[ async_std :: test]
70
+ #[ tokio :: test]
71
71
#[ cfg( not( tarpaulin_include) ) ]
72
72
async fn test_authed_write_and_read ( ) {
73
73
const TEST_NAME : & str = "test_authed_write_and_read" ;
@@ -115,7 +115,7 @@ async fn test_authed_write_and_read() {
115
115
/// INTEGRATION TEST
116
116
///
117
117
/// This test case tests the Authentication
118
- #[ async_std :: test]
118
+ #[ tokio :: test]
119
119
#[ cfg( not( tarpaulin_include) ) ]
120
120
async fn test_wrong_authed_write_and_read ( ) {
121
121
const TEST_NAME : & str = "test_wrong_authed_write_and_read" ;
@@ -185,7 +185,7 @@ async fn test_wrong_authed_write_and_read() {
185
185
/// INTEGRATION TEST
186
186
///
187
187
/// This test case tests the Authentication
188
- #[ async_std :: test]
188
+ #[ tokio :: test]
189
189
#[ cfg( not( tarpaulin_include) ) ]
190
190
async fn test_non_authed_write_and_read ( ) {
191
191
const TEST_NAME : & str = "test_non_authed_write_and_read" ;
@@ -240,7 +240,7 @@ async fn test_non_authed_write_and_read() {
240
240
/// INTEGRATION TEST
241
241
///
242
242
/// This integration tests that writing data and retrieving the data again is working
243
- #[ async_std :: test]
243
+ #[ tokio :: test]
244
244
#[ cfg( not( tarpaulin_include) ) ]
245
245
async fn test_write_and_read_field ( ) {
246
246
const TEST_NAME : & str = "test_write_field" ;
@@ -273,7 +273,7 @@ async fn test_write_and_read_field() {
273
273
/// INTEGRATION TEST
274
274
///
275
275
/// This integration tests that writing data and retrieving the data again is working
276
- #[ async_std :: test]
276
+ #[ tokio :: test]
277
277
#[ cfg( feature = "use-serde" ) ]
278
278
#[ cfg( not( tarpaulin_include) ) ]
279
279
async fn test_write_and_read_option ( ) {
@@ -334,7 +334,7 @@ async fn test_write_and_read_option() {
334
334
///
335
335
/// This test case tests whether JSON can be decoded from a InfluxDB response and whether that JSON
336
336
/// is equal to the data which was written to the database
337
- #[ async_std :: test]
337
+ #[ tokio :: test]
338
338
#[ cfg( feature = "use-serde" ) ]
339
339
#[ cfg( not( tarpaulin_include) ) ]
340
340
async fn test_json_query ( ) {
@@ -386,7 +386,7 @@ async fn test_json_query() {
386
386
///
387
387
/// This test case tests whether the response to a GROUP BY can be parsed by
388
388
/// deserialize_next_tagged into a tags struct
389
- #[ async_std :: test]
389
+ #[ tokio :: test]
390
390
#[ cfg( feature = "use-serde" ) ]
391
391
#[ cfg( not( tarpaulin_include) ) ]
392
392
async fn test_json_query_tagged ( ) {
@@ -504,7 +504,7 @@ async fn test_json_query_vec() {
504
504
/// INTEGRATION TEST
505
505
///
506
506
/// This integration test tests whether using the wrong query method fails building the query
507
- #[ async_std :: test]
507
+ #[ tokio :: test]
508
508
#[ cfg( feature = "use-serde" ) ]
509
509
#[ cfg( not( tarpaulin_include) ) ]
510
510
async fn test_serde_multi_query ( ) {
@@ -580,7 +580,7 @@ async fn test_serde_multi_query() {
580
580
/// INTEGRATION TEST
581
581
///
582
582
/// This integration test tests whether using the wrong query method fails building the query
583
- #[ async_std :: test]
583
+ #[ tokio :: test]
584
584
#[ cfg( feature = "use-serde" ) ]
585
585
#[ cfg( not( tarpaulin_include) ) ]
586
586
async fn test_wrong_query_errors ( ) {
0 commit comments