Skip to content

Fix pkg/jsonmessage.TestProgress panic#23113

Merged
coolljt0725 merged 1 commit intomoby:masterfrom
AkihiroSuda:fixTIOCGWINSZ23112
May 31, 2016
Merged

Fix pkg/jsonmessage.TestProgress panic#23113
coolljt0725 merged 1 commit intomoby:masterfrom
AkihiroSuda:fixTIOCGWINSZ23112

Conversation

@AkihiroSuda
Copy link
Member

- What I did
Fix pkg/jsonmessage.TestProgress panic (#23112)

- How I did it
Check the terminal window size

- How to verify it

  1. Set the terminal column ($COLUMNS) to <= 110 so as to confirm pkg/jsonmessage.TestProgress fails depending on TIOCGWINSZ #23112 is resolved
$ echo $COLUMNS
$ go test -c ./pkg/jsonmessage && go test -v ./jsonmessage.test
  1. Set the terminal column ($COLUMNS) to > 110 so as to confirm there is no regression.
$ echo $COLUMNS
$ go test -v ./jsonmessage.test
  1. Run with nohup as well
$ nohup go test -v ./jsonmessage.test && cat nohup.out

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

Fix moby#23112

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
@vdemeester
Copy link
Member

Nice :-)
LGTM 🐺

@coolljt0725
Copy link
Contributor

LGTM 👍

@coolljt0725 coolljt0725 merged commit ba372df into moby:master May 31, 2016
AkihiroSuda added a commit to AkihiroSuda/docker that referenced this pull request May 31, 2016
The test was failing if the terminal column width is <= 110.

Addendum to moby#23113

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants