mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Disable redis tests outside of CI
...to not annoy people like me who don't have redis open while testing
This commit is contained in:
parent
484d1ccd83
commit
8ae3222409
2 changed files with 6 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -6,6 +6,9 @@ on:
|
|||
|
||||
name: Continuous integration
|
||||
|
||||
env:
|
||||
RUSTFLAGS: "--cfg CI_REDIS"
|
||||
|
||||
jobs:
|
||||
style:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -5,6 +5,7 @@ use std::{
|
|||
use teloxide::dispatching::dialogue::{RedisStorage, RedisStorageError, Serializer, Storage};
|
||||
|
||||
#[tokio::test]
|
||||
#[cfg_attr(not(CI_REDIS), ignore)]
|
||||
async fn test_redis_json() {
|
||||
let storage = RedisStorage::open(
|
||||
"redis://127.0.0.1:7777",
|
||||
|
@ -16,6 +17,7 @@ async fn test_redis_json() {
|
|||
}
|
||||
|
||||
#[tokio::test]
|
||||
#[cfg_attr(not(CI_REDIS), ignore)]
|
||||
async fn test_redis_bincode() {
|
||||
let storage = RedisStorage::open(
|
||||
"redis://127.0.0.1:7778",
|
||||
|
@ -27,6 +29,7 @@ async fn test_redis_bincode() {
|
|||
}
|
||||
|
||||
#[tokio::test]
|
||||
#[cfg_attr(not(CI_REDIS), ignore)]
|
||||
async fn test_redis_cbor() {
|
||||
let storage = RedisStorage::open(
|
||||
"redis://127.0.0.1:7779",
|
||||
|
|
Loading…
Reference in a new issue