After you testify at the meeting of creditors, you will have to wait, in a Chapter 7 case, approximately 60 days. After that time, the bankruptcy judge will issue a discharge order, discharging all or most of your debts. At that time, your case is essentially over and you are free to start rebuilding your financial life with a clean slate.
In a Chapter 13 case, you will have to continue to make payments to the bankruptcy trustee for approximately 3 to 5 years, until the bankruptcy plan is paid. At that time you will receive a discharge of any unsecured debts that were not paid during the bankruptcy.