From df52801c664542996e39cb9ee8aa4e8e0263ea36 Mon Sep 17 00:00:00 2001 From: thomashii Date: Sat, 8 Jan 2022 16:01:30 +0800 Subject: [PATCH] Fixed failed test cases for github action --- packages/orm/angel_orm_test/lib/src/util.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/orm/angel_orm_test/lib/src/util.dart b/packages/orm/angel_orm_test/lib/src/util.dart index 897050af..ec1af996 100644 --- a/packages/orm/angel_orm_test/lib/src/util.dart +++ b/packages/orm/angel_orm_test/lib/src/util.dart @@ -3,7 +3,12 @@ import 'package:io/ansi.dart'; void printSeparator(String title) { var b = StringBuffer('===' + title.toUpperCase()); - for (var i = b.length; i < stdout.terminalColumns - 3; i++) { + + int columns = 80; + if (stdout.hasTerminal) { + columns = stdout.terminalColumns - 3; + } + for (var i = b.length; i < columns; i++) { b.write('='); } for (var i = 0; i < 3; i++) {