File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ def test_channel_operations(capsys: pytest.fixture) -> None:
69
69
delete_channel .delete_channel (
70
70
project_name , location , next_channel_id
71
71
)
72
+ except FailedPrecondition as e :
73
+ print (f"Ignoring FailedPrecondition, try to stop channel: { e } " )
74
+ try :
75
+ stop_channel .stop_channel (
76
+ project_name , location , next_channel_id
77
+ )
78
+ except FailedPrecondition as e :
79
+ print (f"Ignoring FailedPrecondition, details: { e } " )
72
80
except NotFound as e :
73
81
print (f"Ignoring NotFound, details: { e } " )
74
82
except NotFound as e :
Original file line number Diff line number Diff line change 15
15
import os
16
16
import uuid
17
17
18
- from google .api_core .exceptions import NotFound
18
+ from google .api_core .exceptions import FailedPrecondition , NotFound
19
19
import pytest
20
20
21
21
import create_input
@@ -38,6 +38,8 @@ def test_input_operations(capsys: pytest.fixture) -> None:
38
38
if utils .is_resource_stale (response .create_time ):
39
39
try :
40
40
delete_input .delete_input (project_name , location , next_input_id )
41
+ except FailedPrecondition as e :
42
+ print (f"Ignoring FailedPrecondition, details: { e } " )
41
43
except NotFound as e :
42
44
print (f"Ignoring NotFound, details: { e } " )
43
45
You can’t perform that action at this time.
0 commit comments