Skip to content

Commit b4dacea

Browse files
#36 test local - done
1 parent 00a659f commit b4dacea

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

dotnet/ServerlessMicroservices.Shared/Services/SettingService.cs

+3-9
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,10 @@ public bool IsRunningInContainer()
129129

130130
public bool IsEnqueueToOrchestrators()
131131
{
132-
if (
133-
GetEnvironmentVariable(IsEnqueueToOrchestratorsKey) != null &&
134-
!string.IsNullOrEmpty(GetEnvironmentVariable(IsEnqueueToOrchestratorsKey).ToString()) &&
135-
GetEnvironmentVariable(IsEnqueueToOrchestratorsKey).ToString().ToLower() == "true"
136-
)
137-
{
138-
return true;
139-
}
132+
// defaults to true
133+
if (string.IsNullOrEmpty(GetEnvironmentVariable(IsEnqueueToOrchestratorsKey))) return true;
140134

141-
return false;
135+
return bool.Parse(GetEnvironmentVariable(IsEnqueueToOrchestratorsKey));
142136
}
143137

144138
public bool IsPersistDirectly()

scripts/test-local.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ try {
1010

1111
dotnet run testTrips --seeddriversurl http://localhost:7071 --testurl http://localhost:7072/api/triptestparameters
1212

13+
start 'http://localhost:7072/api/activetrips'
14+
1315
}
1416
finally {
1517
Pop-Location

0 commit comments

Comments
 (0)