test case for allocation config

This commit is contained in:
Darien Raymond committed 2016-02-04 10:25:36 +00:00
1 parent b18693a9c4
commit be57f48bb3
2 files changed
+27 -10

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ func (this *InboundDetourConfig) UnmarshalJSON(data []byte) error {
}
}
if this.Allocation.Strategy == AllocationStrategyRandom {
if this.Allocation.Refresh == 0 {
if this.Allocation.Refresh == DefaultRefreshMinute {
this.Allocation.Refresh = 5
}
if this.Allocation.Concurrency == 0 {