Fix typo stoped > stopped

This commit is contained in:
ionutboangiu
2021-07-29 14:32:47 +03:00
committed by Dan Christian Bogos
parent 8d7c2c8d51
commit 218e8f42ec
7 changed files with 8 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ const CGRATES_CFG_JSON = `
"caps": 0, // maximum concurrent request allowed ( 0 to disabled )
"caps_strategy": "*busy", // strategy in case in case of concurrent requests reached
"caps_stats_interval": "0", // the interval we sample for caps stats ( 0 to disabled )
"shutdown_timeout": "1s" // the duration to wait until all services are stoped
"shutdown_timeout": "1s" // the duration to wait until all services are stopped
},

View File

@@ -274,7 +274,7 @@ func (s *Server) ServeBiRPC(addrJSON, addrGOB string, onConn func(birpc.ClientCo
}
defer lgob.Close()
}
<-s.stopbiRPCServer // wait until server is stoped to close the listener
<-s.stopbiRPCServer // wait until server is stopped to close the listener
return
}
@@ -296,7 +296,7 @@ func (s *Server) acceptBiRPC(srv *birpc.BirpcServer, l net.Listener, codecName s
return
}
s.stopbiRPCServer <- struct{}{}
utils.Logger.Crit(fmt.Sprintf("Stoped Bi%s server beacause %s", codecName, err))
utils.Logger.Crit(fmt.Sprintf("Stopped Bi%s server beacause %s", codecName, err))
return // stop if we get Accept error
}
go srv.ServeCodec(newCodec(conn, s.caps, s.anz))

View File

@@ -39,7 +39,7 @@
// "caps": 0, // maximum concurrent request allowed ( 0 to disabled )
// "caps_strategy": "*busy", // strategy in case in case of concurrent requests reached
// "caps_stats_interval": "0", // the interval we sample for caps stats ( 0 to disabled )
// "shutdown_timeout": "1s" // the duration to wait until all services are stoped
// "shutdown_timeout": "1s" // the duration to wait until all services are stopped
// },

View File

@@ -54,7 +54,7 @@ Test calls
Since the user 1001 is marked as *prepaid* inside the telecom switch, calling between 1001 and 1002 should generate pre-auth and prepaid debits which can be checked with *get_account* command integrated within *cgr-console* tool. Charging will be done based on time of day as described in the tariff plan definition above.
*Note*: An important particularity to note here is the ability of **CGRateS** SessionManager to refund units booked in advance (eg: if debit occurs every 10s and rate increments are set to 1s, the SessionManager will be smart enough to refund pre-booked credits for calls stoped in the middle of debit interval).
*Note*: An important particularity to note here is the ability of **CGRateS** SessionManager to refund units booked in advance (eg: if debit occurs every 10s and rate increments are set to 1s, the SessionManager will be smart enough to refund pre-booked credits for calls stopped in the middle of debit interval).
Check that 1001 balance is properly deducted, during the call, and moreover considering that general balance has priority over the shared one debits for this call should take place at first out of general balance.

View File

@@ -49,7 +49,7 @@ import (
* - configure the cluster with the following command:
* `./redis-trib.rb create --replicas 1 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 127.0.0.1:7006`
*
* To run the tests you need to specify the `redisCluster` flag and have the redis stoped:
* To run the tests you need to specify the `redisCluster` flag and have the redis stopped:
* `go test github.com/cgrates/cgrates/general_tests -tags=integration -dbtype=*mysql -run=TestRedisCluster -redisCluster -v`
*
* The configuration of the cluster is the following:

View File

@@ -67,7 +67,7 @@ var (
// Node2 will be slave of node1 and start at port 16380
// Sentinel1 will be started at port 16381 and will watch Node1
// Sentinel2 will be started at port 16382 and will watch Node1
// Also make sure that redis process is stoped
// Also make sure that redis process is stopped
func TestRedisSentinel(t *testing.T) {
if !*redisSentinel {
return

View File

@@ -94,7 +94,7 @@ func TestKamailioAgentReload(t *testing.T) {
t.Fatalf("\nExpected <%+v>, \nReceived <%+v>", nil, err)
}
time.Sleep(10 * time.Millisecond) //need to switch to gorutine
// the engine should be stoped as we could not connect to kamailio
// the engine should be stopped as we could not connect to kamailio
shdChan.CloseOnce()
time.Sleep(10 * time.Millisecond)