@@ -476,8 +476,8 @@ func TestErrorLogRotation(t *testing.T) {
|
|||||||
for {
|
for {
|
||||||
execContainer(t, cli, id, "fred", []string{"bash", "-c", "/opt/mqm/samp/bin/amqsput FAKE"})
|
execContainer(t, cli, id, "fred", []string{"bash", "-c", "/opt/mqm/samp/bin/amqsput FAKE"})
|
||||||
|
|
||||||
_, derpaderp := execContainer(t, cli, id, "mqm", []string{"bash", "-c", "wc -c < " + filepath.Join(dir, "AMQERR02.json")})
|
_, atoiStr := execContainer(t, cli, id, "mqm", []string{"bash", "-c", "wc -c < " + filepath.Join(dir, "AMQERR02.json")})
|
||||||
amqerr02size, _ := strconv.Atoi(derpaderp)
|
amqerr02size, _ := strconv.Atoi(atoiStr)
|
||||||
|
|
||||||
if amqerr02size > 0 {
|
if amqerr02size > 0 {
|
||||||
// We've done enough to cause log rotation
|
// We've done enough to cause log rotation
|
||||||
|
|||||||
Reference in New Issue
Block a user