File tree 2 files changed +11
-3
lines changed 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1455,7 +1455,10 @@ export class NodeCommand extends BaseCommand {
1455
1455
)
1456
1456
1457
1457
const futureDate = new Date ( )
1458
- futureDate . setDate ( futureDate . getDate ( ) + ( 1 / 24 / 60 ) ) // 1 minute in the future
1458
+ this . logger . debug ( `Current time: ${ futureDate } ` )
1459
+
1460
+ futureDate . setTime ( futureDate . getTime ( ) + 20000 ) // 20 seconds in the future
1461
+ this . logger . debug ( `Freeze time: ${ futureDate } ` )
1459
1462
1460
1463
const freezeUpgradeTx = await new FreezeTransaction ( )
1461
1464
. setFreezeType ( FreezeType . FreezeUpgrade )
@@ -1465,7 +1468,10 @@ export class NodeCommand extends BaseCommand {
1465
1468
. freezeWith ( client )
1466
1469
. execute ( client )
1467
1470
1468
- this . logger . debug ( `Upgrade frozen with transaction id: ${ freezeUpgradeTx . transactionId . toString ( ) } ` )
1471
+ const freezeUpgradeReceipt = await freezeUpgradeTx . getReceipt ( client )
1472
+
1473
+ this . logger . debug ( `Upgrade frozen with transaction id: ${ freezeUpgradeTx . transactionId . toString ( ) } ` ,
1474
+ freezeUpgradeReceipt . status . toString ( ) )
1469
1475
} catch ( e ) {
1470
1476
this . logger . error ( `Error in freeze upgrade: ${ e . message } ` , e )
1471
1477
throw new FullstackTestingError ( `Error in freeze upgrade: ${ e . message } ` , e )
Original file line number Diff line number Diff line change 16
16
*/
17
17
import { describe , expect , it } from '@jest/globals'
18
18
import * as helpers from '../../../src/core/helpers.mjs'
19
+ import { HEDERA_PLATFORM_VERSION } from '../../../version.mjs'
19
20
20
21
describe ( 'Helpers' , ( ) => {
21
22
it . each ( [
@@ -65,7 +66,8 @@ describe('Helpers', () => {
65
66
{ input : 'v0.45.1' , output : 'hashgraph/full-stack-testing/ubi8-init-java17' } ,
66
67
{ input : 'v0.46.0' , output : 'hashgraph/full-stack-testing/ubi8-init-java21' } ,
67
68
{ input : 'v0.47.1' , output : 'hashgraph/full-stack-testing/ubi8-init-java21' } ,
68
- { input : 'v0.47.1-alpha.0' , output : 'hashgraph/full-stack-testing/ubi8-init-java21' }
69
+ { input : 'v0.47.1-alpha.0' , output : 'hashgraph/full-stack-testing/ubi8-init-java21' } ,
70
+ { input : HEDERA_PLATFORM_VERSION , output : 'hashgraph/full-stack-testing/ubi8-init-java21' }
69
71
] ) ( 'should be able to determine root-image based on Hedera platform version' , ( t ) => {
70
72
expect ( helpers . getRootImageRepository ( t . input ) ) . toStrictEqual ( t . output )
71
73
} )
You can’t perform that action at this time.
0 commit comments