Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RidRisR committed May 28, 2024
1 parent 35e1d3c commit 685776e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/executor/brie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ func TestBRIEBuilderOPtions(t *testing.T) {
require.NoError(t, builder.err)
e, ok := exec.(*BRIEExec)
require.True(t, ok)
require.Equal(t, 4, e.backupCfg.ChecksumConcurrency)
require.Equal(t, 4, e.backupCfg.CompressionLevel)
require.Equal(t, uint(4), e.backupCfg.ChecksumConcurrency)
require.Equal(t, int32(4), e.backupCfg.CompressionLevel)
require.Equal(t, true, e.backupCfg.IgnoreStats)
require.Equal(t, backuppb.CompressionType_LZ4, e.backupCfg.CompressionConfig.CompressionType)
require.Equal(t, encryptionpb.EncryptionMethod_AES256_CTR, e.backupCfg.CipherInfo.CipherType)
Expand All @@ -204,21 +204,21 @@ func TestBRIEBuilderOPtions(t *testing.T) {
for _, opt := range s.Options {
switch opt.Tp {
case ast.BRIEOptionChecksumConcurrency:
require.Equal(t, 4, opt.UintValue)
require.Equal(t, uint64(4), opt.UintValue)
case ast.BRIEOptionWaitTiflashReady:
require.Equal(t, 1, opt.UintValue)
require.Equal(t, uint64(1), opt.UintValue)
case ast.BRIEOptionWithSysTable:
require.Equal(t, 1, opt.UintValue)
require.Equal(t, uint64(1), opt.UintValue)
case ast.BRIEOptionLoadStats:
require.Equal(t, 1, opt.UintValue)
require.Equal(t, uint64(1), opt.UintValue)
}
}
schema = plan.Schema()
exec = builder.buildBRIE(s, schema)
require.NoError(t, builder.err)
e, ok = exec.(*BRIEExec)
require.True(t, ok)
require.Equal(t, 4, e.restoreCfg.ChecksumConcurrency)
require.Equal(t, uint(4), e.restoreCfg.ChecksumConcurrency)
require.True(t, e.restoreCfg.WaitTiflashReady)
require.True(t, e.restoreCfg.WithSysTable)
require.True(t, e.restoreCfg.LoadStats)
Expand Down

0 comments on commit 685776e

Please sign in to comment.