Skip to content

Commit f362e0f

Browse files
committed
add time between deletes for conversation and assistant integration tests
1 parent 905cb14 commit f362e0f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

test/IBM.WatsonDeveloperCloud.Assistant.v1.IntegrationTests/AssistantServiceIntegrationTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ private Workspace CreateWorkspace(CreateWorkspace properties = null)
584584
#region DeleteWorkspace
585585
private object DeleteWorkspace(string workspaceId)
586586
{
587-
Thread.Sleep(1000);
587+
Thread.Sleep(10000);
588588
Console.WriteLine("\nAttempting to DeleteWorkspace()");
589589
var result = _service.DeleteWorkspace(workspaceId:workspaceId);
590590

@@ -684,7 +684,7 @@ private Intent CreateIntent(string workspaceId, CreateIntent body)
684684
#region DeleteIntent
685685
private object DeleteIntent(string workspaceId, string intent)
686686
{
687-
Thread.Sleep(1000);
687+
Thread.Sleep(10000);
688688
Console.WriteLine("\nAttempting to DeleteIntent()");
689689
var result = _service.DeleteIntent(workspaceId:workspaceId, intent:intent);
690690

@@ -784,7 +784,7 @@ private Example CreateExample(string workspaceId, string intent, CreateExample b
784784
#region DeleteExample
785785
private object DeleteExample(string workspaceId, string intent, string text)
786786
{
787-
Thread.Sleep(1000);
787+
Thread.Sleep(10000);
788788
Console.WriteLine("\nAttempting to DeleteExample()");
789789
var result = _service.DeleteExample(workspaceId:workspaceId, intent:intent, text:text);
790790

@@ -884,7 +884,7 @@ private Counterexample CreateCounterexample(string workspaceId, CreateCounterexa
884884
#region DeleteCounterexample
885885
private object DeleteCounterexample(string workspaceId, string text)
886886
{
887-
Thread.Sleep(1000);
887+
Thread.Sleep(10000);
888888
Console.WriteLine("\nAttempting to DeleteCounterexample()");
889889
var result = _service.DeleteCounterexample(workspaceId:workspaceId, text:text);
890890

@@ -984,7 +984,7 @@ private Entity CreateEntity(string workspaceId, CreateEntity properties)
984984
#region DeleteEntity
985985
private object DeleteEntity(string workspaceId, string entity)
986986
{
987-
Thread.Sleep(1000);
987+
Thread.Sleep(10000);
988988
Console.WriteLine("\nAttempting to DeleteEntity()");
989989
var result = _service.DeleteEntity(workspaceId:workspaceId, entity:entity);
990990

@@ -1084,7 +1084,7 @@ private Value CreateValue(string workspaceId, string entity, CreateValue propert
10841084
#region DeleteValue
10851085
private object DeleteValue(string workspaceId, string entity, string value)
10861086
{
1087-
Thread.Sleep(1000);
1087+
Thread.Sleep(10000);
10881088
Console.WriteLine("\nAttempting to DeleteValue()");
10891089
var result = _service.DeleteValue(workspaceId:workspaceId, entity:entity, value:value);
10901090

@@ -1184,7 +1184,7 @@ private Synonym CreateSynonym(string workspaceId, string entity, string value, C
11841184
#region DeleteSynonym
11851185
private object DeleteSynonym(string workspaceId, string entity, string value, string synonym)
11861186
{
1187-
Thread.Sleep(1000);
1187+
Thread.Sleep(10000);
11881188
Console.WriteLine("\nAttempting to DeleteSynonym()");
11891189
var result = _service.DeleteSynonym(workspaceId:workspaceId, entity:entity, value:value, synonym:synonym);
11901190

@@ -1284,7 +1284,7 @@ private DialogNode CreateDialogNode(string workspaceId, CreateDialogNode propert
12841284
#region DeleteDialogNode
12851285
private object DeleteDialogNode(string workspaceId, string dialogNode)
12861286
{
1287-
Thread.Sleep(1000);
1287+
Thread.Sleep(10000);
12881288
Console.WriteLine("\nAttempting to DeleteDialogNode()");
12891289
var result = _service.DeleteDialogNode(workspaceId:workspaceId, dialogNode:dialogNode);
12901290

test/IBM.WatsonDeveloperCloud.Conversation.v1.IntegrationTests/ConversationIntegrationTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ private Workspace CreateWorkspace(CreateWorkspace properties = null)
613613
#region DeleteWorkspace
614614
private object DeleteWorkspace(string workspaceId)
615615
{
616-
Thread.Sleep(1000);
616+
Thread.Sleep(10000);
617617
Console.WriteLine("\nAttempting to DeleteWorkspace()");
618618
var result = _service.DeleteWorkspace(workspaceId: workspaceId);
619619

@@ -733,7 +733,7 @@ private Intent CreateIntent(string workspaceId, CreateIntent body)
733733
#region DeleteIntent
734734
private object DeleteIntent(string workspaceId, string intent)
735735
{
736-
Thread.Sleep(1000);
736+
Thread.Sleep(10000);
737737
Console.WriteLine("\nAttempting to DeleteIntent()");
738738
var result = _service.DeleteIntent(workspaceId: workspaceId, intent: intent);
739739

@@ -833,7 +833,7 @@ private Example CreateExample(string workspaceId, string intent, CreateExample b
833833
#region DeleteExample
834834
private object DeleteExample(string workspaceId, string intent, string text)
835835
{
836-
Thread.Sleep(1000);
836+
Thread.Sleep(10000);
837837
Console.WriteLine("\nAttempting to DeleteExample()");
838838
var result = _service.DeleteExample(workspaceId: workspaceId, intent: intent, text: text);
839839

@@ -933,7 +933,7 @@ private Entity CreateEntity(string workspaceId, CreateEntity properties)
933933
#region DeleteEntity
934934
private object DeleteEntity(string workspaceId, string entity)
935935
{
936-
Thread.Sleep(1000);
936+
Thread.Sleep(10000);
937937
Console.WriteLine("\nAttempting to DeleteEntity()");
938938
var result = _service.DeleteEntity(workspaceId: workspaceId, entity: entity);
939939

@@ -1033,7 +1033,7 @@ private Value CreateValue(string workspaceId, string entity, CreateValue propert
10331033
#region DeleteValue
10341034
private object DeleteValue(string workspaceId, string entity, string value)
10351035
{
1036-
Thread.Sleep(1000);
1036+
Thread.Sleep(10000);
10371037
Console.WriteLine("\nAttempting to DeleteValue()");
10381038
var result = _service.DeleteValue(workspaceId: workspaceId, entity: entity, value: value);
10391039

@@ -1133,7 +1133,7 @@ private Synonym CreateSynonym(string workspaceId, string entity, string value, C
11331133
#region DeleteSynonym
11341134
private object DeleteSynonym(string workspaceId, string entity, string value, string synonym)
11351135
{
1136-
Thread.Sleep(1000);
1136+
Thread.Sleep(10000);
11371137
Console.WriteLine("\nAttempting to DeleteSynonym()");
11381138
var result = _service.DeleteSynonym(workspaceId: workspaceId, entity: entity, value: value, synonym: synonym);
11391139

@@ -1233,7 +1233,7 @@ private DialogNode CreateDialogNode(string workspaceId, CreateDialogNode propert
12331233
#region DeleteDialogNode
12341234
private object DeleteDialogNode(string workspaceId, string dialogNode)
12351235
{
1236-
Thread.Sleep(1000);
1236+
Thread.Sleep(10000);
12371237
Console.WriteLine("\nAttempting to DeleteDialogNode()");
12381238
var result = _service.DeleteDialogNode(workspaceId: workspaceId, dialogNode: dialogNode);
12391239

@@ -1373,7 +1373,7 @@ private Counterexample CreateCounterexample(string workspaceId, CreateCounterexa
13731373
#region DeleteCounterexample
13741374
private object DeleteCounterexample(string workspaceId, string text)
13751375
{
1376-
Thread.Sleep(1000);
1376+
Thread.Sleep(10000);
13771377
Console.WriteLine("\nAttempting to DeleteCounterexample()");
13781378
var result = _service.DeleteCounterexample(workspaceId: workspaceId, text: text);
13791379

0 commit comments

Comments
 (0)